﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Zatify.API.Controllers
{
    public class PaymentController : BaseController
    {
        public string Pay(string cardNumber, string cardPin, DateTime cardDateExpiration, decimal amount, string description)
        {
            string result = "";

            if (!PaymentService.Pay(cardNumber, cardPin, cardDateExpiration, amount, description, out result)) return result;
            else return string.Empty;
        }
    }
}
